﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="uploadWithInput.aspx.cs" Inherits="Web.uploadWithJqueryelement" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function AddFile() {
            var strFile = " <input name=\"upload_file\" type='file'  style='WIDTH:350px;'/> <br/>";
            $("#divfiles").append(strFile);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div id="divfiles"></div>
            <asp:Button ID="btnUpload" runat="server" Text="upload" />
            <input id="BtnAddFile" type="button" class="inputButton" value="增加附件" onclick="javascript: AddFile()" />
        </div>
    </form>
</body>
</html>
